<?php /* Smarty version 2.6.26, created on 2014-10-23 16:00:19
         compiled from index.html */ ?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style type="text/css">
		a{
			text-decoration: none;
			color: #666;
			margin-right: 10px;
		}
		a:hover{
			text-decoration: underline;
			color: #333;
		}
		th{
			color: #F6E4A5;
			background: #4C6080;
		}
		td{
			text-align: center;
		}
	</style>
</head>
<body>
	<table border="1" width="100%" height="100%" cellspacing="0">
		<tr>
			<th>cid</th>
			<th>栏目名称</th>
			<th>操作</th>
		</tr>
		<?php unset($this->_sections['d']);
$this->_sections['d']['name'] = 'd';
$this->_sections['d']['loop'] = is_array($_loop=$this->_tpl_vars['data']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['d']['show'] = true;
$this->_sections['d']['max'] = $this->_sections['d']['loop'];
$this->_sections['d']['step'] = 1;
$this->_sections['d']['start'] = $this->_sections['d']['step'] > 0 ? 0 : $this->_sections['d']['loop']-1;
if ($this->_sections['d']['show']) {
    $this->_sections['d']['total'] = $this->_sections['d']['loop'];
    if ($this->_sections['d']['total'] == 0)
        $this->_sections['d']['show'] = false;
} else
    $this->_sections['d']['total'] = 0;
if ($this->_sections['d']['show']):

            for ($this->_sections['d']['index'] = $this->_sections['d']['start'], $this->_sections['d']['iteration'] = 1;
                 $this->_sections['d']['iteration'] <= $this->_sections['d']['total'];
                 $this->_sections['d']['index'] += $this->_sections['d']['step'], $this->_sections['d']['iteration']++):
$this->_sections['d']['rownum'] = $this->_sections['d']['iteration'];
$this->_sections['d']['index_prev'] = $this->_sections['d']['index'] - $this->_sections['d']['step'];
$this->_sections['d']['index_next'] = $this->_sections['d']['index'] + $this->_sections['d']['step'];
$this->_sections['d']['first']      = ($this->_sections['d']['iteration'] == 1);
$this->_sections['d']['last']       = ($this->_sections['d']['iteration'] == $this->_sections['d']['total']);
?>
		<tr>
			<td><?php echo $this->_tpl_vars['data'][$this->_sections['d']['index']]['cid']; ?>
</td>
			<td><?php echo $this->_tpl_vars['data'][$this->_sections['d']['index']]['catname']; ?>
</td>
			<td>
				<a href="<?php echo @__CONTROLLER__; ?>
&a=edit&cid=<?php echo $this->_tpl_vars['data'][$this->_sections['d']['index']]['cid']; ?>
">编辑</a>
				<a href="<?php echo @__CONTROLLER__; ?>
&a=del&cid=<?php echo $this->_tpl_vars['data'][$this->_sections['d']['index']]['cid']; ?>
" onclick="return confirm('您确定删除这个栏目么？')">删除</a>
			</td>
		</tr>
		<?php endfor; endif; ?>
	</table>
</body>
</html>